package com.zeldu.teacher.service.impl;

import com.zeldu.teacher.mapper.TeacherInfoMapper;
import com.zeldu.teacher.pojo.Teacher;
import com.zeldu.teacher.service.TeacherInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherInfoServiceImpl implements TeacherInfoService {

    @Autowired(required = false)
    private TeacherInfoMapper teacherInfoMapper;

    @Override
    public Teacher getSelfInfo(Long id) {
        return teacherInfoMapper.getSelfInfo(id);
    }

    @Override
    public int mdfSelfInfo(Teacher teacher) {
        return teacherInfoMapper.mdfSelfInfo(teacher);
    }
}
